import Vue from 'vue'
import App from './App.vue'
import router from './router'
import '@/assets/css/global.css'
import axios from 'axios'
// 配置请求的根路径
axios.defaults.baseURL = 'http://localhost:3000/'
Vue.prototype.$http = axios
  // 全局过滤器，过滤数字小数， 使成为xxx万
Vue.filter('numFilter', num => {
  const result = num / 10000
  return result.toFixed() - 1 + '万'
})
Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')